package com.vx.ratingTool.entities;

import java.util.List;

public class Match {
	private List<Player> teamA;
	private List<Player> teamB;
	private int teamArating;
	private int teamBrating;
	private int teamAskill;
	private int teamBskill;
	private Boolean teamAwins;
	private int chanceToWinOfTeamAInPercent;
	private int chanceToWinOfTeamABasedOnRatingPercent;

	public Match(List<Player> teamA, List<Player> teamB) {
		super();
		this.setTeamA(teamA);
		this.setTeamB(teamB);
		teamArating = 0;
		teamBrating = 0;
		teamAskill = 0;
		teamBskill = 0;
		for (int j = 0; j < 5; j++) {
			teamArating += teamA.get(j).getRating();
			teamBrating += teamB.get(j).getRating();
			teamAskill += teamA.get(j).getSkill();
			teamBskill += teamB.get(j).getSkill();
		}
	}

	public List<Player> getTeamA() {
		return teamA;
	}

	public void setTeamA(List<Player> teamA) {
		this.teamA = teamA;
	}

	public List<Player> getTeamB() {
		return teamB;
	}

	public void setTeamB(List<Player> teamB) {
		this.teamB = teamB;
	}

	public int getTeamArating() {
		return teamArating;
	}

	public void setTeamArating(int teamArating) {
		this.teamArating = teamArating;
	}

	public int getTeamBrating() {
		return teamBrating;
	}

	public void setTeamBrating(int teamBrating) {
		this.teamBrating = teamBrating;
	}

	public int getTeamAskill() {
		return teamAskill;
	}

	public void setTeamAskill(int teamAskill) {
		this.teamAskill = teamAskill;
	}

	public int getTeamBskill() {
		return teamBskill;
	}

	public void setTeamBskill(int teamBskill) {
		this.teamBskill = teamBskill;
	}

	public Boolean getTeamAwins() {
		return teamAwins;
	}

	public void setTeamAwins(Boolean teamAwins) {
		this.teamAwins = teamAwins;
	}

	public int getChanceToWinOfTeamAInPercent() {
		return chanceToWinOfTeamAInPercent;
	}

	public int getChanceToWinOfTeamABasedOnRatingPercent() {
		return chanceToWinOfTeamABasedOnRatingPercent;
	}

	public void setChanceToWinOfTeamABasedOnRatingPercent(int chanceToWinOfTeamABasedOnRatingPercent) {
		this.chanceToWinOfTeamABasedOnRatingPercent = chanceToWinOfTeamABasedOnRatingPercent;
	}

	public void setChanceToWinOfTeamAInPercent(int chanceToWinOfTeamAInPercent) {
		this.chanceToWinOfTeamAInPercent = chanceToWinOfTeamAInPercent;
	}

}
